package main

import (
	"time"

	"fyne.io/fyne/v2"
	"fyne.io/fyne/v2/app"
	"fyne.io/fyne/v2/widget"
)

func main() {
	a := app.New()
	w := a.NewWindow("Hello World")
	w.Resize(fyne.NewSquareSize(200))
	go func() {
		for range time.Tick(time.Second) {
			w.SetTitle(time.Now().Format("Time: 03:04:05")) // Update the window title every second
		}
	}()
	w.SetContent(widget.NewLabel("Hello World!"))
	w.ShowAndRun()
}
